package com.gd.coreservice.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Collection对象", description="")
public class CollectionVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.ID_WORKER_STR)
    private String userId;

    private String itemId;

    private Date createdTime;


    //以下非数据库字段
    @TableId(value = "gid", type = IdType.ID_WORKER_STR)
    private String gid;

    private String sellerId;

    private String itemName;

    private BigDecimal buyPrice;

    private BigDecimal sellPrice;

    private String photoUrl;

    private String description;

    private String isApproved;

    private String status;

    private Date createdAt;

    private Date updatedAt;

    private String sellerUsername;

    @TableLogic
    private Boolean isDeleted;



}
